package com.api.shopapi.mapper;


import com.api.shopapi.entity.SysNation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysNationMapper {

    @Select("select  * from sys_nation order by id ")
    List<SysNation> getList();

    @Select("select  * from  sys_nation where id=#{id} ")
    SysNation getById(@Param("id") int id);
}
